﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005E3 RID: 1507
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FormulaTypeValue : IMessage<FormulaTypeValue>, IMessage, IEquatable<FormulaTypeValue>, IDeepCloneable<FormulaTypeValue>, IBufferMessage
	{
		// Token: 0x17001357 RID: 4951
		// (get) Token: 0x060043D3 RID: 17363 RVA: 0x000B951C File Offset: 0x000B771C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FormulaTypeValue> Parser
		{
			get
			{
				return FormulaTypeValue._parser;
			}
		}

		// Token: 0x17001358 RID: 4952
		// (get) Token: 0x060043D4 RID: 17364 RVA: 0x000B9523 File Offset: 0x000B7723
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FormulaTypeValueReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001359 RID: 4953
		// (get) Token: 0x060043D5 RID: 17365 RVA: 0x000B9535 File Offset: 0x000B7735
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FormulaTypeValue.Descriptor;
			}
		}

		// Token: 0x060043D6 RID: 17366 RVA: 0x000B953C File Offset: 0x000B773C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaTypeValue()
		{
		}

		// Token: 0x060043D7 RID: 17367 RVA: 0x000B954F File Offset: 0x000B774F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaTypeValue(FormulaTypeValue other) : this()
		{
			this.formulaTypeMap_ = other.formulaTypeMap_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060043D8 RID: 17368 RVA: 0x000B9579 File Offset: 0x000B7779
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaTypeValue Clone()
		{
			return new FormulaTypeValue(this);
		}

		// Token: 0x1700135A RID: 4954
		// (get) Token: 0x060043D9 RID: 17369 RVA: 0x000B9581 File Offset: 0x000B7781
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, int> FormulaTypeMap
		{
			get
			{
				return this.formulaTypeMap_;
			}
		}

		// Token: 0x060043DA RID: 17370 RVA: 0x000B9589 File Offset: 0x000B7789
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FormulaTypeValue);
		}

		// Token: 0x060043DB RID: 17371 RVA: 0x000B9597 File Offset: 0x000B7797
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FormulaTypeValue other)
		{
			return other != null && (other == this || (this.FormulaTypeMap.Equals(other.FormulaTypeMap) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060043DC RID: 17372 RVA: 0x000B95CC File Offset: 0x000B77CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.FormulaTypeMap.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060043DD RID: 17373 RVA: 0x000B9600 File Offset: 0x000B7800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060043DE RID: 17374 RVA: 0x000B9608 File Offset: 0x000B7808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060043DF RID: 17375 RVA: 0x000B9611 File Offset: 0x000B7811
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.formulaTypeMap_.WriteTo(ref output, FormulaTypeValue._map_formulaTypeMap_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060043E0 RID: 17376 RVA: 0x000B9638 File Offset: 0x000B7838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.formulaTypeMap_.CalculateSize(FormulaTypeValue._map_formulaTypeMap_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060043E1 RID: 17377 RVA: 0x000B9671 File Offset: 0x000B7871
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FormulaTypeValue other)
		{
			if (other == null)
			{
				return;
			}
			this.formulaTypeMap_.MergeFrom(other.formulaTypeMap_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060043E2 RID: 17378 RVA: 0x000B969F File Offset: 0x000B789F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060043E3 RID: 17379 RVA: 0x000B96A8 File Offset: 0x000B78A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.formulaTypeMap_.AddEntriesFrom(ref input, FormulaTypeValue._map_formulaTypeMap_codec);
				}
			}
		}

		// Token: 0x04001AB4 RID: 6836
		private static readonly MessageParser<FormulaTypeValue> _parser = new MessageParser<FormulaTypeValue>(() => new FormulaTypeValue());

		// Token: 0x04001AB5 RID: 6837
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001AB6 RID: 6838
		public const int FormulaTypeMapFieldNumber = 10;

		// Token: 0x04001AB7 RID: 6839
		private static readonly MapField<uint, int>.Codec _map_formulaTypeMap_codec = new MapField<uint, int>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForInt32(16U, 0), 82U);

		// Token: 0x04001AB8 RID: 6840
		private readonly MapField<uint, int> formulaTypeMap_ = new MapField<uint, int>();
	}
}
